home *** CD-ROM | disk | FTP | other *** search
/ The Business Master (3rd Edition) / The Business Master (3rd Edition).iso / files / utilreen / txt2ps / comments.txt next >
Text File  |  1992-01-23  |  2KB  |  48 lines

  1. Andrew,
  2.  
  3.  
  4. Some comments on comments:
  5.  
  6.  
  7. (1) John is right about tabs and formfeeds, and I have modified the
  8. program accordingly.  Also, same for #define on buffer size.
  9.  
  10.  
  11. (2) The idiot that thought up signed chars will be promptly hanged if
  12. I ever become dictator.  This is the same kind of nonsense as
  13. INETGER*2 versus INTEGER*4 in old Fortran programs, namely, that it is
  14. better to save a byte than to save a brain cell.  I always use the
  15. compiler switch that forces unsigned chars and thus never worry about
  16. the issue.
  17.  
  18. Imagine, if you will, declaring all string variables as "unsigned
  19. char" to accommodate values > 127.  Alas, there is nary an "unsigned"
  20. in STRING.H, and I am thus forced to write the ludicrous
  21.  
  22.                 strlen( (char *) (unsigned_char_ptr) )
  23.  
  24. to keep the compiler quiet.  This is unnatural and should be forbidden
  25. by all tenets of programming decency.
  26.  
  27. ( Goodness! There's a soap box at my feet-- imagine that! )
  28.  
  29.  
  30. (3) As for line size, using the program as written with mono-spaced
  31. Courier, anything over 80 chars will be truncated on the page.  This
  32. restriction could be removed, but would complicate the program, and a
  33. general-case solution that is not sensitive to font size or spacing
  34. leads to word-wrap algorithms and fairly complex PS code.  My feeling
  35. is that this would make the article less useful as a general
  36. introduction to PostScript.  As written, any file that can be displayed
  37. in the width of an 80-column monitor can be printed.
  38.  
  39.  
  40. (4) Finally, the last "showpage" occurs at end-of-file, and thus a
  41. terminating <CR><LF> is not generally necessary.  However, I have
  42. adding a terminating newline just to be safe.  (The one thing you
  43. can depemd on in this business is that you cannot depend on
  44. anything.)
  45.  
  46.  
  47. Marv Luse.
  48.